package com.atguigu.gmall.scheduled.cart;

import com.atguigu.gmall.scheduled.feign.GmallCartClient;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class CartJobHandler {

    @Autowired
    private GmallCartClient gmallCartClient;

    @XxlJob("cartSyncData")
    public ReturnT<String> syncData(String param){
        gmallCartClient.syncData();
        return ReturnT.SUCCESS;
    }

}
